<?php
	$id=$_POST['id'];
	$nama=$_POST['agama'];

	if(isset($_POST['submit'])){
		$sql="update agama set agama='$nama' where id_agama=$id";
	}
	
	$qry=mysql_query($sql);
	$url_sukses='utama.php?module=mod_agama';
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>